import Layout from '@/layout'

export const userRoutes = {
    path: '/my',
    redirect: '/my/favorite',
    component: Layout,
    children: [
      // {
      //   path: '/my/home',
      //   name: 'myHome',
      //   meta: {
      //     title:"마이페이지",
      //     isHide:true,
      //     roles:['personal','enterprise']
      //   },
      //   component: () => import("@/views/userCenter/index.vue")
      // },
      {
        path: '/my/notice',
        name: 'myNotice',
        meta: {
          title:"알림",
          roles:['personal','enterprise']
        },
        component: () => import("@/views/userCenter/notice.vue")
      },
      {
        path: '/my/cv',
        name: 'myCV',
        meta: {
          title:"이력서관리",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/cv.vue")
      },
      {
        path: '/my/cv/manager',
        name: 'myCV_manager_info',
        meta: {
          title:"지원정보",
          roles:['personal'],
          isHide:true
        },
        component: () => import("@/views/userCenter/cv/index.vue")
      },
      // {
      //   path: '/my/cv/manager/info',
      //   name: 'myCV_manager_info',
      //   meta: {
      //     title:"지원정보",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/info.vue")
      // },
      // {
      //   path: '/my/cv/manager/skills',
      //   name: 'myCV_manager_skills',
      //   meta: {
      //     title:"핵심역량",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/skills.vue")
      // },
      // {
      //   path: '/my/cv/manager/experience',
      //   name: 'myCV_manager_experience',
      //   meta: {
      //     title:"경력",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/experience.vue")
      // },
      // {
      //   path: '/my/cv/manager/education',
      //   name: 'myCV_manager_education',
      //   meta: {
      //     title:"학력",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/education.vue")
      // },
      // {
      //   path: '/my/cv/manager/learning',
      //   name: 'myCV_manager_learning',
      //   meta: {
      //     title:"교육",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/learning.vue")
      // },
      // {
      //   path: '/my/cv/manager/award',
      //   name: 'myCV_manager_award',
      //   meta: {
      //     title:"수상이력",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/award.vue")
      // },
      // {
      //   path: '/my/cv/manager/certification',
      //   name: 'myCV_manager_certification',
      //   meta: {
      //     title:"자격증",
      //     roles:['personal'],
      //     isHide:true
      //   },
      //   component: () => import("@/views/userCenter/cv/certification.vue")
      // },
      {
        path: '/my/job',
        name: 'myJog',
        meta: {
          title:"채용정보 관리",
          roles:['enterprise']
        },
        component: () => import("@/views/userCenter/job.vue")
      },
      {
        path: '/my/job/manager',
        name: 'myJob_manager_info',
        meta: {
          title:"채용정보 관리",
          roles:['enterprise'],
          isHide:true
        },
        component: () => import("@/views/userCenter/job/index.vue")
      },
      {
        path: '/my/favorite',
        name: 'myFavorite',
        meta: {
          title:"최근/찜 채용공고",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/favorite.vue")
      },
      {
        path: '/my/favoriteEn',
        name: 'myFavoriteEn',
        meta: {
          title:"최근/찜 인재정보",
          roles:['enterprise']
        },
        component: () => import("@/views/userCenter/favoriteEn.vue")
      },
      {
        path: '/my/follow',
        name: 'follow',
        meta: {
          title:"나의 이력서 조회 기업",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/follow.vue")
      },
      {
        path: '/my/followEn',
        name: 'followEn',
        meta: {
          title:"나의 채용정보 조회 회원",
          roles:['enterprise']
        },
        component: () => import("@/views/userCenter/followEn.vue")
      },     
      {
        path: '/my/coach',
        name: 'myCoach',
        meta: {
          title:"코칭서비스관리",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/coach.vue")
      },
      {
        path: '/my/coachForm',
        name: 'myCoachForm',
        meta: {
          title:"코칭서비스관리",
          roles:['personal'],
          isHide:true
        },
        component: () => import("@/views/userCenter/coachForm.vue")
      },
      {
        path: '/my/coachInfo',
        name: 'myCoachInfo',
        meta: {
          title:"코칭서비스관리",
          roles:['personal','enterprise'],
          isHide:true
        },
        component: () => import("@/views/userCenter/coachInfo.vue")
      },
      {
        path: '/my/order',
        name: 'myOrder',
        meta: {
          title:"주문/결제 내역",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/order.vue")
      },
      {
        path: '/my/check',
        name: 'myCheck',
        meta: {
          title:"개인정보관리",
          roles:['personal']
        },
        component: () => import("@/views/userCenter/check.vue")
      },
      {
        path: '/my/check',
        name: 'myCheckEnt',
        meta: {
          title:"기업정보관리",
          roles:['enterprise']
        },
        component: () => import("@/views/userCenter/check.vue")
      },
      {
        path: '/my/personal',
        name: 'myInfo',
        meta: {
          title:"개인정보관리",
          roles:['personal'],
          isHide:true
        },
        component: () => import("@/views/userCenter/personal.vue")
      },
      {
        path: '/my/enterprise',
        name: 'myCompany',
        meta: {
          title:"기업정보관리",
          roles:['enterprise'],
          isHide:true
        },
        component: () => import("@/views/userCenter/enterprise.vue")
      },
    ]
  }
  
export default userRoutes